package com.cavy.platform.server.dto;

import com.cavy.platform.server.validator.FormatValidatorGroup;
import com.cavy.platform.server.validator.PluginContainerData;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 唐旭
 * @Date 2018/7/19
 */
@Data
public abstract class AbstractContainerInfo implements PluginContainerData {
    //镜像
    @NotNull(message = "镜像名称不能为空", groups = FormatValidatorGroup.class)
    protected String image;
    //命令
    protected String command;
    //运行插件的user
    protected String user;
    //挂载的卷
    protected List<ContainerVolumeDto> volumes = new ArrayList<>();
    //环境变量
    protected List<ContainerEnvironmentDto> environments = new ArrayList<>();
    //工作目录
    protected String workDir;
}
